import Taro from '@tarojs/taro';
import { Component } from 'react'
import { View, Text,Button } from '@tarojs/components'

import "taro-ui/dist/style/components/button.scss" // 按需引入
import './index.scss'

import ShareClass from  "@/common/decorator/ShareClass";

import CommonCpt from '@/common/decorator/CommonCpt.';

//@ShareClass({name:"zy"})
export default class Index extends CommonCpt {

  constructor(props) {
    super(props);
    this.state = {
    
    };
  }

  /* onShareAppMessage = (res) => {
      if (res.from === 'button') {
        // 来自页面内转发按钮
        console.log(res.target)
      }
      return {
        title: 'qq自定义转发标题',
        path: '/page/user?id=123',
      }
    }   */
  

  render () {
    return (
      <View className='index'>
        <div>122</div>
        <Text onClick={()=>{this.haha();console.log(Index.isDecorator)}}>其他</Text>
        <Text>{process.env.TARO_ENV}</Text>
       <Button  openType='share'>分享</Button>
      </View>
    )
  }
}
